<?php
/**
 * Created by PhpStorm.
 * User: wuxiaojie
 * Date: 2018/7/22
 * Time: 19:51
 */


if (!defined('IN_ANWSION')) {
die();
}

class aomas_site extends AWS_ADMIN_CONTROLLER
{




    public  function  nav_config_action(){
        $this->crumb(AWS_APP::lang()->_t('导航配置'), 'admin/aomas_site/nav_config');


//        $plugins = AWS_APP::plugins();
////        var_dump($plugins);
//        $smsClass = $this->model('signature_helper');
//        var_dump($smsClass->sendValidCode('13127808798'));

        $nav_list  = $this->model('menu')-> get_aomas_nav_menu_list();

        TPL::assign('nav_one_list', $nav_list['one']);
        TPL::assign('nav_two_list', $nav_list['two']);


        TPL::assign('setting', get_setting());

        TPL::import_js(array(
            'js/fileupload.js',
        ));


        TPL::assign('menu_list', $this->model('admin')->fetch_menu_list(1040));

        TPL::output('admin/aomas_site/nav_config');
    }



    public  function  home_config_action()
    {
        $this->crumb(AWS_APP::lang()->_t('首页配置'), 'admin/aomas_site/home_config');


        $home_data = (array)AWS_APP::config()->get('home_data_v1');



        TPL::assign('setting', get_setting());

//        TPL::import_js(array(
//            'js/fileupload.js',
//        ));
        TPL::assign('home_data',$home_data);

        TPL::assign('menu_list', $this->model('admin')->fetch_menu_list(1041));

        TPL::output('admin/aomas_site/home_data_config');
    }







}